﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Luminji.ExamWeb.Models;

namespace Luminji.ExamWeb.Controllers
{
    public class AdmBaseController : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
            //string userName = Request.Cookies["UserName"] == null
            //    ? string.Empty : Request.Cookies["UserName"].Value;
            //string token = Request.Cookies["Token"] == null
            //    ? string.Empty : Request.Cookies["Token"].Value;
            //LogOnModel user = ControllerContext.HttpContext.Cache.Get(token) as LogOnModel;
            //if (user == null)
            //{
            //    filterContext.Result =
            //        RedirectToRoute("Default", new { Controller = "Account", Action = "LogOn" });
            //}
        }

    }
}
